package org.dtrd.modules.flup.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.flup.entity.bean.FlupAttentionDetail;


/**
 * <p>
 * 复诊注意事项
 * </p>
 *
 * @author QR
 * @since 2021-12-29
 */
@Getter
@Setter
@TableName("dtrd_ent_rd_flup_attention")
public class DtrdEntRdFlupAttention {

    @TableId(value = "data_id", type = IdType.AUTO)
    private Integer dataId;

    /**
     * 注意事项内容
     */
    @TableField("attention_content")
    private String attentionContent;

    @TableField("is_del")
    @TableLogic
    private Integer isDel;

    @TableField("create_time")
    private Date createTime;

    public DtrdEntRdFlupAttention init() {
        isDel = 0;
        createTime = new Date();
        return this;
    }

    public DtrdEntRdFlupAttention parseFromDto(FlupAttentionDetail dto) {
        dataId = dto.getDataId();
        attentionContent = dto.getAttentionContent();
        return this;
    }


}
